﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoucheComposantCommunication
{
    class CUC
    {
        private Server.Server plateforme;
        private FactoryMessage.STGMSG oMsg;
        private string ClientName;
        private string ClientID;

        public CUC()
        {
            this.ClientName = "Application1_v1";
            this.ClientID = "@1234";
            this.plateforme = new Server.Server();
        }
        public FactoryMessage.STGMSG callServices(FactoryMessage.STGMSG oMsg)
        {
            this.oMsg = FactoryMessage.MSG_FACTORY.msg_factory(this.ClientName, oMsg.Data, "", oMsg.Invoke, this.ClientID, true, oMsg.token);
            this.oMsg = this.plateforme.service(this.oMsg);
            return this.oMsg;
        }
    }
}